@main-split-color: #e6eaef;

.asset-list-new {
  flex: 1;
  height: 100%;
  border-right: 1px solid @main-split-color;
  &-empty {
    padding: 24px;
    background-color: #f7f9fc;
    overflow: auto;

    .title {
      font-size: 24px;
    }
    .empty-desc {
      margin-top: 16px;
      font-size: 14px;
      color: #686c78;
    }
    .add-asset-action {
      overflow: hidden;
      position: relative;
      margin-top: 24px;
      margin-left: 6px;
      padding: 24px;
      background-color: #ffffff;
      .bg {
        position: absolute;
        bottom: -30px;
        right: -27px;
        width: 156px;
        height: 156px;
      }
      .title {
        font-size: 16px;
      }
      .desc {
        margin-top: 12px;
        font-size: 14px;
        color: #686c78;
      }
      .action {
        margin-top: 24px;
      }
    }
  }

  &-not-empty {
    display: flex;
    flex-direction: column;
  }

  // 操作行样式
  .opts {
    padding: 16px;
    margin-bottom: -12px;
    background-color: #ffffff;

    .task-btn {
      .ant-dropdown-trigger {
        position: relative;
        &::before {
          content: '';
          position: absolute;
          display: block;
          overflow: hidden;
          background-color: #ffffff;
          width: 1px;
          height: 16px;
          left: -0.5px;
          top: 8px;
          opacity: 0.5;
        }
      }
    }

    .task-btn,
    .export-btn,
    .edit-btn,
    .delete-btn {
      margin-right: 16px;
    }
    .task-btn,
    .export-btn,
    .delete-btn,
    .edit-btn,
    .add-asset-btn {
      margin-bottom: 12px;
    }
  }

  // 选择排序行样式
  .select-sort {
    display: flex;
    justify-content: space-between;
    padding: 16px;
    background-color: #f7f9fc;
  }

  // 资产样式
  .assets-container {
    flex: 1;
    height: 100%;
    overflow: auto;

    .empty {
      margin: 50px 0;
    }

    .ant-checkbox-inner::after {
      transition-duration: 0.1s !important;
    }

    // 单个资产
    .asset {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 16px;
      border-bottom: 1px solid @main-split-color;
      cursor: pointer;
      background-color: #ffffff;
      transition: all 0.1s;

      &.active,
      &:hover {
        background-color: #f7f9fc;
      }

      .ant-rate {
        line-height: 20px !important;
      }

      .data {
        flex: 1;
        // font-size: 12px;
        margin-left: 10px;

        .top {
          display: flex;
          justify-content: space-between;

          .address {
            flex: 1;
            position: relative;
            color: #696c78;

            .asset-category-icon {
              position: absolute;
              top: 2px;
              left: -24px;
              width: 17px;
              height: 17px;
            }

            .item {
              line-height: 23px;
              &:nth-child(1) {
                font-weight: 400;
                color: #1e1f23;
              }
            }
          }
          .risk-wrapper {
            text-align: right;
          }
          .risk {
            display: inline-block;
            padding: 0 20px;
            margin-left: auto;
            margin-bottom: 6px;
            height: 24px;
            line-height: 21px;
            background: rgba(241, 125, 145, 0.1);
            border-radius: 12px;
            img {
              margin: 0 4px;
            }
          }
          .weight {
            svg {
              width: 14px;
            }
          }
        }
        .tags {
          margin-top: 8px;
          margin-bottom: -4px;
          font-size: 12px;
        }
        .categories {
          margin-top: 8px;
          margin-bottom: -8px;
          font-size: 12px;
          color: '#696c78';
          .categories-name {
            height: 20px;
            color: '#696c78';
          }
          .categories-icon {
            margin-right: 10px;
          }
        }
        .c-tag {
          max-width: 100px;
          overflow: hidden;
          white-space: nowrap;
          text-overflow: ellipsis;
          margin: 0 4px 4px 0;
        }
      }
    }

    // 分页
    .pagination-wrapper {
      margin: 12px 0 24px 0;
      text-align: center;
    }
  }

  // 时间筛选下拉框
  &-sort {
    margin-left: auto;
    .sort-array {
      cursor: pointer;
      &.down {
        transform: rotateX(180deg);
      }
    }
  }
}
.asset-list-new,
.asset-list-new-add-site-menu {
  .suggest-new,
  .suggest-recommend {
    display: inline-block;
    width: 42px;
    height: 21px;
    line-height: 23px;
    margin-left: 6px;
    text-align: center;
    color: #ffffff;
    font-size: 12px;
    border-radius: 2px;
  }
  .suggest-new {
    background-color: #0b6fd6;
  }
  .suggest-recommend {
    background-color: #f0734f;
  }
}
